package com.smart.model.dtomapper;

import com.smart.model.domain.OperateRolePermissionDO;
import com.smart.model.request.OperateRolePermissionRequest;
import com.smart.model.vo.OperateRolePermissionVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface OperateRolePermissionDtoMapper {

    OperateRolePermissionDtoMapper INSTANCE = Mappers.getMapper(OperateRolePermissionDtoMapper.class);

    /**
    * DO to VO
    * @param operateRolePermissionDO
    * @return
    */
    OperateRolePermissionVO do2VO(OperateRolePermissionDO operateRolePermissionDO);

    /**
     * reuest to DO
     * @param operateRolePermissionDO
     * @return
     */
    OperateRolePermissionDO request2DO(OperateRolePermissionRequest operateRolePermissionDO);
}
